/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.curso.service;

import com.curso.dao.serializables.RoleDaoSer;
import java.util.List;
import com.curso.model.Role;

/**
 *
 * @author Administrador
 */
public class RoleService extends GenericService<Role, Long>{
    
    public List<Role> getRoles() {
        return this.getAll();
    }

    /**
     * {@inheritDoc}
     */
    public void removeRole(String rolename) {
       //ToDo
    }

    @Override
    public List<Role> getAll() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public Role get(Long id) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public boolean exists(Long id) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public Role save(Role object) {
        return new RoleDaoSer().save(object);
    }

    @Override
    public void remove(Long id) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}